package org.example.maven.museumuser.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SearchMapper {

    //搜索展览
    @Select("select name from exhibition where name like CONCAT('%', #{keyword}, '%')")
    List<String> searchExhibition(String value);

    //搜索藏品
    @Select("select name from collection_subcategory_category_source where name like CONCAT('%', #{keyword}, '%')")
    List<String> searchCollection(String value);
}
